import json


# with open('test2.json', encoding='utf-8') as f:
#     a = json.load(f)
#     for i in a:
#         print(f'[({i.get("username")})({i.get("password")})({i.get("expect")})]')

def read_list():
    new_list = []
    with open('test2.json', encoding='utf-8') as f:
        a = json.load(f)
        for i in a:
            new_list.append((i.get("username"), i.get("password"), i.get("expect")))

    return new_list


print(read_list())
